package org.fmi.lje.model.util;

import org.apache.commons.lang.StringEscapeUtils;
import org.fmi.lje.model.UmlGenProject;
import org.fmi.lje.model.impl.ClassPathEntries;
import org.fmi.lje.model.impl.DiagramClasses;
import org.fmi.lje.model.impl.UmlGenProjectImpl;

public class ProjectFactory {

	public static UmlGenProject createUmlGenProject(String projectName) {
		UmlGenProjectImpl umlGenProject = new UmlGenProjectImpl();

		umlGenProject.setProjectName(projectName);
		umlGenProject.setClassPathEntries(new ClassPathEntries());
		umlGenProject.setDiagramClasses(new DiagramClasses());
		umlGenProject.setSourceFolder(StringEscapeUtils.escapeXml("src/main/java"));
		
		return umlGenProject;
	}
}
